package org.xiaov.codeautocreator.common.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 描述：查询表集合传入的请求参数
 * </p>
 *
 * @author xiaovcloud
 * @since 2021/9/5 21:10
 */
@Data
public class TableListRequest {

    @ApiModelProperty(name = "current", value = "当前页", required = true)
    @NotBlank(message = "current不能为空")
    @Min(value = 1, message = "current为正整数")
    private String current;

    @ApiModelProperty(name = "size", value = "每页大小", required = true)
    @NotBlank(message = "size不能为空")
    @Min(value = 1, message = "current为正整数")
    private String size;

    @ApiModelProperty(name = "tableName", value = "表名")
    private String tableName;
}
